import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        isShow: true,
        _token: ""
    },
    mutations: {
        setIsShow(state, arg) {
            return (state.isShow = arg)
        },

        setToken(state, arg) {
            localStorage.setItem("jwt", arg)
            return (state._token = arg)
        }
    },
    actions: {},
    modules: {}
})